//
//  Use this file to import your target's public headers that you would like to expose to Swift.
//
<<<<<<< HEAD
// 屏幕宽度和高度
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height

// 状态栏高度
#define STATUS_BAR_HEIGHT [[UIApplication sharedApplication] statusBarFrame].size.height

// 导航栏高度
#define NAVIGATION_BAR_HEIGHT (STATUS_BAR_HEIGHT + 44.0)

// 安全区高度
#define SAFE_AREA_BOTTOM ({\
    CGFloat bottom = 0;\
    if (@available(iOS 11.0, *)) {\
        bottom = [[UIApplication sharedApplication].keyWindow.safeAreaInsets.bottom];\
    }\
    bottom;\
})

// 是否为刘海屏幕（iPhone X 及以上机型）
#define IS_IPHONE_X ({\
    BOOL isIPhoneX = NO;\
    if (@available(iOS 11.0, *)) {\
        UIWindow *window = [[UIApplication sharedApplication].windows firstObject];\
        isIPhoneX = window.safeAreaInsets.bottom > 0;\
    }\
    isIPhoneX;\
})

// 日志宏（仅在调试模式下生效）
#ifdef DEBUG
#define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
#else
#define DLog(...)
#endif

// 十六进制颜色宏
#define HEXCOLOR(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \
                                           green:((float)((hexValue & 0xFF00) >> 8))/255.0 \
                                            blue:((float)(hexValue & 0xFF))/255.0 \
                                           alpha:1.0]

#define HEXCOLOR_WITH_ALPHA(hexValue, alphaValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16))/255.0 \
                                                                 green:((float)((hexValue & 0xFF00) >> 8))/255.0 \
                                                                  blue:((float)(hexValue & 0xFF))/255.0 \
                                                                 alpha:alphaValue]
// 颜色宏
#define rgb(r, g, b) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define rgba(r, g, b, a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define Gfstr(string)  [NSString stringWithFormat:@"%@",string]
// 定义宏方便调用
#define GFString(string) [BaseWay localizedStringForKey:string]
#import "BaseWay.h"
=======
>>>>>>> 291cab90cbb8ff4921e32ec95b13330bf79c214c

